<html>
<head><meta charset="utf-8"><title>Small pitfall that tripped me over · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html">Small pitfall that tripped me over</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="207028651"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207028651" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207028651">(Aug 15 2020 at 16:30)</a>:</h4>
<p>Today i finally realized that my vs code ra extension is very outdated... Vscode is not updating it properly, because my local installed version is 0.2.202001xx-dev and the newest version is 0.2.273, so vscode thinks my installed version is newer. I reinstalled it.</p>



<a name="207029554"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207029554" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207029554">(Aug 15 2020 at 16:52)</a>:</h4>
<p>Another small thing i'm not sure if it is worth reporting:<br>
<a href="/user_uploads/4715/4amN881Wy8ygN3jTfX1gB8z7/image.png">image.png</a> <br>
the highlight seems a little... inconsistent.</p>
<div class="message_inline_image"><a href="/user_uploads/4715/4amN881Wy8ygN3jTfX1gB8z7/image.png" title="image.png"><img src="/user_uploads/4715/4amN881Wy8ygN3jTfX1gB8z7/image.png"></a></div>



<a name="207075808"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207075808" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207075808">(Aug 16 2020 at 15:26)</a>:</h4>
<p>You can use the "Inspect Tokens and Scopes" command to see if the tokens are the right type re highlighting</p>



<a name="207100160"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207100160" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207100160">(Aug 17 2020 at 01:57)</a>:</h4>
<p><a href="/user_uploads/4715/I4snE9vBB6W_Kn4EMZtQxdLU/image.png">image.png</a> <br>
<a href="/user_uploads/4715/A8kqIRMB3vPWE8j5QfIbzmb9/image.png">image.png</a> <br>
<a href="/user_uploads/4715/A0WtMF6we-FFDa2FsUT8ZC9m/image.png">image.png</a> </p>
<div class="message_inline_image"><a href="/user_uploads/4715/I4snE9vBB6W_Kn4EMZtQxdLU/image.png" title="image.png"><img src="/user_uploads/4715/I4snE9vBB6W_Kn4EMZtQxdLU/image.png"></a></div><div class="message_inline_image"><a href="/user_uploads/4715/A8kqIRMB3vPWE8j5QfIbzmb9/image.png" title="image.png"><img src="/user_uploads/4715/A8kqIRMB3vPWE8j5QfIbzmb9/image.png"></a></div><div class="message_inline_image"><a href="/user_uploads/4715/A0WtMF6we-FFDa2FsUT8ZC9m/image.png" title="image.png"><img src="/user_uploads/4715/A0WtMF6we-FFDa2FsUT8ZC9m/image.png"></a></div><p>I think there's something incorrect here...</p>



<a name="207117700"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207117700" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207117700">(Aug 17 2020 at 08:21)</a>:</h4>
<p>Semantic highlighting is disabled it seems. This means that the language definition in vscode is used, which highlights <code>Eq</code> and similar identifiers differently independent of the location.</p>



<a name="207149222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207149222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207149222">(Aug 17 2020 at 14:18)</a>:</h4>
<p>Thanks! After i change to Semantic Highlighting setting from default "configuredByTheme" to "true", it looks much better now :)</p>



<a name="207168976"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207168976" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207168976">(Aug 17 2020 at 17:02)</a>:</h4>
<p>(Reusing this topic) I'm curious about the newly added <code>CHALK_PRINT</code> feature. I have set the environment variables <code>CHALK_DEBUG</code> and <code>CHALK_PRINT</code> and ... nothing happens. What do i need to do to show logs of <code>rust-analyzer-server</code> in a vscode pane?</p>



<a name="207174067"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207174067" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207174067">(Aug 17 2020 at 17:42)</a>:</h4>
<p>Hm, did debug output break? Not seeing any either (even in analysis-stats for example)</p>



<a name="207175319"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207175319" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207175319">(Aug 17 2020 at 17:51)</a>:</h4>
<p>Yeah, at some point debug output stopped working, and it wasn't my PR that introduced <code>CHALK_PRINT</code></p>



<a name="207175412"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207175412" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207175412">(Aug 17 2020 at 17:52)</a>:</h4>
<p>For example, this used to give debug output, and now doesn't:</p>
<div class="codehilite"><pre><span></span><code>RA_LOG=ra_hir_ty=debug CHALK_DEBUG=2 cargo run --release -p rust-analyzer -- analysis-stats .
</code></pre></div>



<a name="207175642"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207175642" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207175642">(Aug 17 2020 at 17:54)</a>:</h4>
<p>Going to bisect</p>



<a name="207176555"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207176555" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207176555">(Aug 17 2020 at 18:02)</a>:</h4>
<p>we don't set up tracing yet in the rust-analyzer binary</p>



<a name="207176589"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207176589" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207176589">(Aug 17 2020 at 18:02)</a>:</h4>
<p>so the chalk debug logging is only working in tests since the move to tracing</p>



<a name="207176610"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207176610" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207176610">(Aug 17 2020 at 18:02)</a>:</h4>
<p>It's one of the crate renames, I think</p>



<a name="207176695"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207176695" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207176695">(Aug 17 2020 at 18:03)</a>:</h4>
<p><code>[6a77ec7bbe6ddbf663dce9529d11d1bb56c5489a] Rename ra_hir_ty -&gt; hir_ty</code></p>



<a name="207176880"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207176880" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207176880">(Aug 17 2020 at 18:04)</a>:</h4>
<p><span class="user-mention" data-user-id="129457">@Florian Diebold</span> debug output was working when I started <a href="https://github.com/rust-analyzer/rust-analyzer/pull/5347">https://github.com/rust-analyzer/rust-analyzer/pull/5347</a>, but broke after rebasing. Bisecting pointed to the <a href="https://github.com/rust-analyzer/rust-analyzer/commit/6a77ec7bbe6ddbf663dce9529d11d1bb56c5489a">crate rename</a></p>



<a name="207177025"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177025" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177025">(Aug 17 2020 at 18:05)</a>:</h4>
<p>Unless I misunderstand what you're saying</p>



<a name="207177047"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177047" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177047">(Aug 17 2020 at 18:06)</a>:</h4>
<p>I find it hard to imagine that would have an effect</p>



<a name="207177089"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177089" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177089">(Aug 17 2020 at 18:06)</a>:</h4>
<p>what kind of debug output was working for you?</p>



<a name="207177138"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177138" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177138">(Aug 17 2020 at 18:06)</a>:</h4>
<p>Stuff like this, using the command I wrote above:</p>
<div class="codehilite"><pre><span></span><code>[DEBUG ra_hir_ty::traits::chalk] impls_for_trait Deref
[DEBUG ra_hir_ty::traits::chalk] impls_for_trait returned 0 impls
[DEBUG ra_hir_ty::traits] solve(UCanonical { canonical: Canonical { value: InEnvironment { environment: Env([]), goal: Implemented({fn __action993}: Deref) }, binders: [] }, universes: 1 }) =&gt; None
4/4604 32% processing: parser::__action1465[INFO  ra_hir_ty::traits] trait_solve_query(Implements(fn __action994(&amp;str, (usize, (), usize), (usize, (), usize), (usize, Option&lt;WellKnownTrait&gt;, usize), (usize, &amp;str, usize), (usize, Identifier, usize), (usize, Vec&lt;VariableKind&gt;, usize), (usize, Vec&lt;QuantifiedWhereClause&gt;, usize), (usize, &amp;str, usize), (usize, Vec&lt;AssocTyDefn&gt;, usize), (usize, &amp;str, usize)) -&gt; TraitDefn: Deref))
</code></pre></div>



<a name="207177226"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177226" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177226">(Aug 17 2020 at 18:07)</a>:</h4>
<p>Same command did show a lot of such output before the crate rename, and no debug output after</p>



<a name="207177246"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177246" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177246">(Aug 17 2020 at 18:07)</a>:</h4>
<p>ok, that's just the RA logging. I would expect that to be working right now</p>



<a name="207177374"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177374" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177374">(Aug 17 2020 at 18:08)</a>:</h4>
<p>what I was saying is that CHALK_DEBUG logging hasn't worked in RA since the tracing move</p>



<a name="207177397"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177397" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177397">(Aug 17 2020 at 18:08)</a>:</h4>
<p>except in tests, because I set it up there</p>



<a name="207177481"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177481" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177481">(Aug 17 2020 at 18:09)</a>:</h4>
<p>Ah right, yeah I didn't even notice that. Though <code>CHALK_PRINT</code> should still work since it's done on RA's side</p>



<a name="207177766"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177766" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177766">(Aug 17 2020 at 18:11)</a>:</h4>
<p>Maybe you're setting a module filter that needs to be updated?</p>



<a name="207177859"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177859" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177859">(Aug 17 2020 at 18:12)</a>:</h4>
<p>Oh wow, yeah big oof</p>



<a name="207177889"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207177889" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207177889">(Aug 17 2020 at 18:13)</a>:</h4>
<p>Makes sense that <code>RA_LOG=ra_hir_ty=debug</code> isn't working any more -.-</p>



<a name="207178051"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207178051" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207178051">(Aug 17 2020 at 18:14)</a>:</h4>
<p>Okay, back on topic</p>



<a name="207178081"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207178081" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207178081">(Aug 17 2020 at 18:14)</a>:</h4>
<p><span class="user-mention" data-user-id="116458">@Charles Lew</span> did you also set <code>RA_LOG</code>?</p>



<a name="207179532"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207179532" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207179532">(Aug 17 2020 at 18:28)</a>:</h4>
<p><span class="user-mention" data-user-id="116458">@Charles Lew</span> Got it: set <code>RA_LOG=hir_ty=debug</code> and <code>CHALK_PRINT=1</code>, then you should see debug output and printed chalk programs in the "Rust Analyzer Language Server" output</p>



<a name="207179879"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207179879" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207179879">(Aug 17 2020 at 18:31)</a>:</h4>
<p><a href="/user_uploads/4715/0RzvMkD2YII_1B_vhuZ4383y/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/0RzvMkD2YII_1B_vhuZ4383y/image.png" title="image.png"><img src="/user_uploads/4715/0RzvMkD2YII_1B_vhuZ4383y/image.png"></a></div>



<a name="207214339"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207214339" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207214339">(Aug 18 2020 at 01:06)</a>:</h4>
<p>Thanks! Let me try it out.</p>



<a name="207214894"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Small%20pitfall%20that%20tripped%20me%20over/near/207214894" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Small.20pitfall.20that.20tripped.20me.20over.html#207214894">(Aug 18 2020 at 01:16)</a>:</h4>
<p>It's working fine! Thank you so much!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>